<?php
return [

    # 连接信息
    'AMQP' => [
        'host' => '192.168.0.166',
        'port'=>'5672',
        'login'=>'test',
        'password'=>'123456',
        'vhost'=>'test'
    ],
    # 邮件队列
    'email_queue' => [
        'exchange_name' => 'email_exchange',
        'exchange_type'=>'direct',#直连模式
        'queue_name' => 'email_queue',
        'route_key' => 'email_roteking',
        'consumer_tag' => 'consumer'
    ],
    # 商品队列【fanout】
    'goods_queue' => [
        'exchange_name' => 'fanout_exchange',
        'exchange_type'=>'fanout',#扇形
        'queue_name' => 'goods_queue',
        'route_key' => 'goods_routerking',
        'consumer_tag' => 'goods'
    ],
    # 订单队列【fanout】
    'order_queue' => [
        'exchange_name' => 'order_exchange',
        'exchange_type'=>'x-delayed-message',#延时
        'queue_name' => 'order_queue',
        'route_key' => 'order_routerking',
        'consumer_tag' => 'order'
    ],
    # fanout队列
    'fanout_queue' => [
        'exchange_name' => 'fanout_exchange',
        'exchange_type'=>'fanout',#扇形
        'queue_name' => 'fanout_queue',
        'route_key' => 'fanout_routerking',
        'consumer_tag' => 'fanout'
    ],
];
